package com.ljk.config;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum OptionEnum {
    /** 操作类型 */
    put("上传"),
    ;

    /** 中文含义 */
    private final String desc;


    public static OptionEnum get(String type) {
        if (type == null) {
            return null;
        }
        try {
            return OptionEnum.valueOf(type);
        } catch (IllegalArgumentException e) {
            return null;
        }
    }
}
